package com.ymt.fmd.platform.dao.mysql;

import java.util.List;
import java.util.Map;

import com.ymt.fmd.platform.model.PService;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PServiceMapper {
	/**
	 * delete service
	 * @param id
	 * @return
	 */
    int deleteByPrimaryKey(String id);

    /**
     * insert service
     * @param record
     * @return
     */
    int insert(PService record);

    /**
     * insertSelective service
     * @param record
     * @return
     */
    int insertSelective(PService record);

    /**
     * select service
     * @param id
     * @return
     */
    PService selectByPrimaryKey(String id);

    /**
     * update service
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(PService record);

    /**
     * update service
     * @param record
     * @return
     */
    int updateByPrimaryKeyWithBLOBs(PService record);

    /**
     * update service
     * @param record
     * @return
     */
    int updateByPrimaryKey(PService record);
    
    /**
     * query by object
     * @param params
     * @return
     */
    List<Map<String, ?>> pagingSelect(Map<String, Object> params);
    
    /**
     * query by object
     * @param params
     * @return
     */
    Map<String,?> pagingSelectCount(Map<String, Object> params);

	List<Map<String, ?>> queryTable(Map<String, Object> param);

	int queryTableTotal(Map<String, Object> param);

}